const cloud = require('wx-server-sdk');
cloud.init({
    env: cloud.DYNAMIC_CURRENT_ENV
})
const db = cloud.database();
const _ = db.command
exports.main = async (event, context) => {
    const result = await db.collection('repair_tabel').doc(event._id).update({
        data: event.data,
    })
    return {
        result: result,
    }
}